<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork" %>
<ww:bean name="'com.css.apps.base.dict.service.DictMan'" id="dictID" />
<form class="form-horizontal table-form" name="initSelectUserform" id="initSelectUserform" method="post" action="selectUserList.action" onsubmit="return $action.query(this)">
  <input type="hidden" name="page.orderFlag" id="page.orderFlag" class="order-flag" value="<ww:property value='page.orderFlag'/>"> 
	<input type="hidden" name="page.orderString" id="page.orderString" class="order-string" value="<ww:property value='page.orderString'/>">
	<input type="hidden" name="page.pageSize" id="page.pageSize" class="page-size" value="<ww:property value='page.pageSize'/>">
	<input type="hidden" name="page.totalPages" id="page.totalPages" class="page-count" value="<ww:property value='page.totalPages'/>">
	<input type="hidden" name="page.currentPage" id="page.currentPage" class="page-current" value="<ww:property value='page.currentPage'/>">
	
	<div class="table-header" >
		<div class="table-search">
			<ul>
	   		<li><input class="input-medium" type="text" id="realName" name="realName" maxlength="50"  placeholder="请输入用户姓名" value="<ww:property value='realName'/>"></li>
			    <li>
			    	<ww:button css="btn green" caption="查询"  type="submit"></ww:button>
			    </li>
			</ul>
		</div>
	</div>
	<div id="userTable" style="overflow:auto; height:470px;">
		<table class="table table-bordered"  >
			<thead>
				<tr>
					<th width="100px">操作</th>
	     	 	<th width="120px" order-field="realName" class="order">姓名</th>
	      	<th width="80px" order-field="sex" class="order">性别</th>
	     	 	<th width="320px" order-field="email" class="order">邮箱</th>
			</tr>
			</thead>
			<tbody>
			  <ww:iterator value="page.results" id="data" status="data">
				<tr ondblclick="$selectUser.select('<ww:property value='uuid'/>','<ww:property value='realName'/>')">
					<td class="text-center">
						<ww:link  caption="选择用户" onclick="$selectUser.select('%{uuid}','%{realName}')" href="javascript:;"></ww:link>&nbsp;
					</td>
						<td class="text-center"><ww:property value="realName"/></td>
						<td class="text-center"><ww:property value="#dictID.getDictType('d_sex', sex).name" /></td>
						<td class="text-left"><ww:property value="email"/></td>
				</ww:iterator>
			</tbody>
		</table>
		<div class="pagination"><ww:property value="page.pageSplit"/></div>
	</div>
</form>